package cn.lingyangwl.agile.food.model.rqrs.store;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import cn.lingyangwl.agile.food.model.entity.ShopStore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 门店
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class StoreBase {
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
	@ApiModelProperty(value = "名称")
	private String name;
	
	@ApiModelProperty(value = "logo")
	private String logo;
	
	@ApiModelProperty(value = "地址")
	private String address;

	@ApiModelProperty(value = "门店标签, 多个之间用逗号隔开")
	@NotEmpty(message = ValidationCons.NOT_EMPTY)
	private String tags;

	@ApiModelProperty(value = "门店电话")
	@NotEmpty(message = ValidationCons.NOT_EMPTY)
	private String phone;

	@ApiModelProperty(value = "地址")
	private ShopStore.AddressDetail addressDetail;
	
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
	@ApiModelProperty(value = "状态, 禁用/启用")
	private String status;
	
	@ApiModelProperty(value = "省")
	private Long provinceId;
	
	@ApiModelProperty(value = "市")
	private Long cityId;
	
	@ApiModelProperty(value = "区")
	private Long regionId;
	
	@ApiModelProperty(value = "备注")
	private String remark;
	
	@ApiModelProperty(value = "营业时间")
	@Valid
	private List<ShopStore.OpenTime> openTime;
	
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
	@ApiModelProperty(value = "营业状态, 1： 营业中, 0: 停止营业")
	private String openStatus;

	@ApiModelProperty(value = "就餐方式")
	private List<String> repastWay;
}
